import random
guess_number=random.randint(1,100)
min=1
max=100
i=input(f"请输入数字{min}~{max}:")
while(i.isdigit()==False or int(i)<0 or int(i)>100):
    i=input(f"请输入数字{min}~{max}:")
i=int(i)
while i!=guess_number:
    if i<guess_number:
        print("太小了")
        min=i+1
        i=input(f"请输入数字{min}~{max}:")
        i=int(i)
    else:
        print("太大了")
        max=i-1
        i=input(f"请输入数字{min}~{max}:")
        i=int(i)
print("正确")
print("感谢游玩")

